package com.yaowk.common.api.model.query;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
public class KeywordQuery {
    @ApiModelProperty("搜索条件-关键字")
    private String keyword;

    public String getPreKeyword() {
        return "%" + keyword;
    }

    public String getSufKeyword() {
        return keyword + "%";
    }

    public String getBothKeyword() {
        return "%" + keyword + "%";
    }
}
